package com.fujin.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fujin.common.Vo.SocialUser;
import com.fujin.common.utils.PageUtils;
import com.fujin.gulimall.member.Exception.PhoneExistException;
import com.fujin.gulimall.member.Exception.UserNameExistException;
import com.fujin.gulimall.member.Vo.RegisterVo;
import com.fujin.gulimall.member.Vo.loginVo;
import com.fujin.gulimall.member.entity.MemberEntity;

import java.util.Map;

/**
 * 会员
 *
 * @author fujin
 * @email 1242257@gmail.com
 * @date 2021-12-25 15:59:30
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(RegisterVo registerVo);

    void cheCkPhone(String phone) throws PhoneExistException;

    void cheCkUserName(String UserName) throws UserNameExistException;

    MemberEntity login(loginVo loginVo);

    MemberEntity login(SocialUser socialUser);
}

